package com.pureut.storage.controller;


import com.pureut.storage.dto.PurchaseReceiptDetailDto;
import com.pureut.storage.service.PurchaseReceiptDetailService;
import com.sale.common.core.web.controller.BaseController;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/***
 * 采购入库明细控制层
 * Author:C
 * Date:2023/01/17 11:37
 * @DESC
 */
@RestController
@RequestMapping("/purchase-receipt-detail")
public class PurchaseReceiptDetailController extends BaseController {

    @Resource
    PurchaseReceiptDetailService purchaseReceiptDetailService;


    /**
     * 采购入库明细列表
     */
    @GetMapping("/list")
    public TableDataInfo<PurchaseReceiptDetailDto> getList(long id, PageQuery pageQuery) {
        //查询采购入库明细列表
        return purchaseReceiptDetailService.getReceiptDetail(id,pageQuery);
    }
}
